package com.BigDate.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stx
 * @since 2021-12-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_fork_project")
@ApiModel(value="ForkProject对象", description="")
public class ForkProject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目fork记录表")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "项目id（fk）")
    private Integer projectid;

    @ApiModelProperty(value = "用户id（fk）")
    private Integer userid;

    @ApiModelProperty(value = "fork时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date forktime;

    @ApiModelProperty(value = "fork用户")
    @TableField(exist = false)
    private String nickname;
}
